"use strict";

var uma = require('./utils/umtrack-wx-game/lib/index');

uma.init({
  appKey:'6736aabb7e5e6a4eeb96fa45',
  useOpenid:true,// default true
  autoGetOpenid:true,
  debug:false,
  uploadUserInfo:true// 上传用户信息，上传后可以看到有用户头像和昵称的分享信息
});

require('adapter-min.js');

__globalAdapter.init();

requirePlugin('cocos');

__globalAdapter.adaptEngine();

require('./ccRequire');

require('./src/settings'); // Introduce Cocos Service here


require('./main'); // TODO: move to common
// Adjust devicePixelRatio


cc.view._maxPixelRatio = 4;

if (cc.sys.platform !== cc.sys.WECHAT_GAME_SUB) {
  // Release Image objects after uploaded gl texture
  cc.macro.CLEANUP_IMAGE_CACHE = true;
}

window.boot();